home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / doors_1 / dmail11d.zip / SF31.TXT < prev    next >
Text File  |  1992-03-22  |  23KB  |  410 lines

  1.                                     DataMail
  2.      Sysop's Manual               Version 1.1                        SF31-1
  3.                              SpitFire 3.1 Addendum
  4.      ======================================================================
  5.  
  6.  
  7.      Installation: Step 1
  8.      ====================
  9.  
  10.           First, you should decide what disk and subdirectories you will be
  11.      using.  I  recommend subdirectories \DATAMAIL  and \DATAMAIL\FILES  on
  12.      whatever drive you have the most available space.   \DATAMAIL is where
  13.      you will install  the software; \DATAMAIL\FILES  is where your  Users'
  14.      files will be  stored when they upload.  Go  ahead and establish those
  15.      directories now.   For example purposes, I will assume you have chosen
  16.      D:\DATAMAIL and D:\DATAMAIL\FILES.
  17.  
  18.           Make D:\DATAMAIL  your default Drive:\Directory by  typing D: and
  19.      then  CD  \DATAMAIL.    Into  D:\DATAMAIL,   unpack  the  contents  of
  20.      DMEXES.EXE, DMXFER.EXE, and DMDATA.EXE.
  21.  
  22.           Next unpack DMSF31.EXE into D:\DATAMAIL.
  23.  
  24.           Check the contents of D:\DATAMAIL.  You should have:
  25.  
  26.                DATAMAIL.EXE   DataMail Door Program
  27.                DMCONFIG.EXE   DataMail Configuration Program
  28.                DMUTIMSG.EXE   DataMail UTI Message Formatter/Invocation
  29.                DMREPORT.EXE   DataMail Database Reporter
  30.                DMCHECK.EXE    Determines if any Downloads Waiting
  31.                DMUSRBLD.EXE   User Database Builder/File Purge
  32.                DM01CDB.DBD    Database Definition File
  33.                DM010005.KEY   Skeleton Database Key file, Global Parms
  34.                DM010005.DAT   Skeleton Database Data file, Global Parms
  35.                DM010006.KEY   Skeleton Database Key file, Sec-Levels
  36.                DM010006.DAT   Skeleton Database Data file, Sec-Levels
  37.                DMXFER1.BAT    Sample File-Transfer Batch file 1
  38.                DMXFER2.BAT    Sample File-Transfer Batch file 2
  39.                DMXFER3.BAT    Sample File-Transfer Batch file 3
  40.                DMXFER4.BAT    Sample File-Transfer Batch file 4
  41.                DMXFER5.BAT    Sample File-Transfer Batch file 5
  42.                DMXFERS.TXT    Sample User-Prompts for File-Transfers
  43.  
  44.           Now,  run DMCONFIG.    First, you  need to  define  the Path  and
  45.      Filename for your BBS  software's User Master File.   Select Configure
  46.      Global Parameters,  and then  BBS  User File.   Type  in the  complete
  47.      Drive, Path, and  Filename of  your BBS software's  User Master  File.
  48.      This   will   be   C:\SF\WORK\SFUSERS.DAT  for   most   SpitFire   3.1
  49.      installations, although you may be using a different Drive: or \Path\.
  50.      However, the filename to use is definitely SFUSERS.DAT.
  51.  
  52.           Now, return to the entry menu for DMCONFIG.  Select Rebuild  User
  53.      DataBase.  This should trigger  DMUSRBLD to execute.  For  now, ignore
  54.      the Warning that DMUSRBLD displays about not supplying a Node number.
  55.  
  56.           Note: DMUSRBLD  should exit with  a return code  of zero.   If it
  57.      does not, you are either using the wrong DMUSRBLD.EXE program for your
  58.      BBS  software, you mistyped the Drive, Path, and Filename to your User
  59.      Master File  in the previous step,  or you do not  have enough memory.
  60.                                     DataMail
  61.      SF31-2                       Version 1.1                Sysop's Manual
  62.                              SpitFire 3.1 Addendum
  63.      ======================================================================
  64.  
  65.  
  66.      In the latter case, you can exit DMCONFIG and run  DMUSRBLD by itself,
  67.      but you are going to have  problems getting DATAMAIL.EXE to run if you
  68.      don't have enough memory for just the DMCONFIG and DMUSRBLD programs.
  69.      In either  of the  former cases,  exit DMCONFIG  and, if they  exists,
  70.      delete  the  files   DM010000.KEY/.DAT.    Then   locate  the   proper
  71.      DMUSRBLD.EXE program for  your BBS  software, and make  sure you  have
  72.      everything in D:\DATAMAIL.  Make sure that D:\DATAMAIL is your default
  73.      Drive and Directory.  Then repeat these last two steps (specifying the
  74.      Drive:\Path\Filename of SFUSERS.DAT and running DMUSRBLD).
  75.  
  76.           Do not get  discouraged if DMUSRBLD takes a while  to run.  Under
  77.      normal circumstances,  DM010000.KEY/.DAT are only "refreshed", and the
  78.      process   is   very  quick.     However,   the  initial   creation  of
  79.      DM010000.KEY/.DAT  can take  anywhere  from a  few seconds  to several
  80.      minutes, depending upon how many Users you have and how fast/slow your
  81.      CPU and hard  drive is.  DM010000.KEY/.DAT only needs  to be recreated
  82.      whenever you mark Users as  locked-out, deleted, reduce their security
  83.      to  0, or  "pack" your User  Master File.   Day-to-day  operation only
  84.      requires a "refresh"  of DM010000.KEY/.DAT, and  this process is  much
  85.      faster that a complete rebuild of the files.
  86.  
  87.           Now,  exit DMCONFIG  and run  DMREPORT 1.   That's  "DMREPORT 1".
  88.      Make sure you specify the "1" after "DMREPORT".  You should see a 2-up
  89.      listing  of your  Users and  their  security levels.   If  things look
  90.      correct, you  have finished the first  phase of installation.   If you
  91.      get  garbage, or  names and  security levels  don't align  properly in
  92.      their  columns, you have  a problem.   Delete  DM010000.KEY/.DAT, make
  93.      certain  you are using the  correct DMUSRBLD.EXE program  for your BBS
  94.      software, and that you have specified the full Drive:\Path\Filename to
  95.      your BBS's User Master File.
  96.  
  97.  
  98.      Installation: Step 2
  99.      ====================
  100.  
  101.           You  have  just  completed  the  first  major hurdle  in  getting
  102.      DataMail setup.    The  next  step  is to  decide  how  many  transfer
  103.      protocols you  wish to allow (maximum  5 each for upload  & download),
  104.      and what you will call the batch files that handle these transfers.  I
  105.      recommend  batch  files DMXFER1.BAT through  DMXFER5.BAT, but you  can
  106.      call  them anything  you like.   You  must also  decide where  on your
  107.      system you will place  these batch files.   You can place them on  any
  108.      drive in any directory, but it  will be much easier if you  place them
  109.      in D:\DATAMAIL with the rest of your DataMail files.
  110.  
  111.           Note that the sample batch files (DMXFERx.BAT), DMXFERS.TXT,  and
  112.      the contents of DM010005.KEY/.DAT for file-transfers are already  set-
  113.      up to handle  Zmodem, Zmodem MobyTurbo, HyperP,  Xmodem, and Ymodem-G.
  114.      If these  are the protocols  you want to  use, then you  may skip this
  115.      step.  Otherwise, please continue reading...
  116.                                     DataMail
  117.      Sysop's Manual               Version 1.1                        SF31-3
  118.                              SpitFire 3.1 Addendum
  119.      ======================================================================
  120.  
  121.  
  122.           Run  DMCONFIG once more.  Select the Alter Global Parameters, and
  123.      then, in turn, each of the five Batch File Transfer options (options 5
  124.      through  9).   NOTE: to keep  the command-line arguments  to under 128
  125.      bytes  when these batch files are executed,  I recommend NOT putting a
  126.      full Drive:\Path\ specifier in front of the batch filenames IF you are
  127.      going to  put those batch  files in  D:\DATAMAIL.  If  you place  your
  128.      batch files in some other directory, you need to specify  the complete
  129.      Drive: and \Path\ to those files, along with the filenames.
  130.  
  131.           If you do not wish to  support all five possible protocols, enter
  132.      the literal NONE for the ones you do not want supported.  For example,
  133.      if you do not wish  to have but three protocols available,  enter NONE
  134.      for options four and five.   NOTE: In this example, you could  just as
  135.      easily enter NONE for any two of the five options (say, two and four),
  136.      but  you will probably  find it much  easier if you  place your unused
  137.      protocols at the  bottom of the available five, and  place your usable
  138.      protocols at the top of the available five.
  139.  
  140.           Now,  exit  DMCONFIG and  start your  text  editor.   Locate file
  141.      DMXFERS.TXT and edit it under the following rules:
  142.  
  143.           1)   No line my exceed 77 characters in length.
  144.           2)   There must be at least ten lines, even if some are blank.
  145.           3)   Odd-numbered lines are for Download Protocols 1 through 5
  146.           4)   Even-numbered lines are for Upload Protocols 1 through 5
  147.           5)   The text on each line should describe the Protocol type.
  148.  
  149.           Here's  an example.    Suppose you  have  run DMCONFIG  and  only
  150.      specified three  active protocols,  and those  are 1, 2,  and 3.   You
  151.      configured protocols 4 and 5 as "NONE".  Let's  say your choices for 1
  152.      through  3  are DMXFER1.BAT,  DMXFER2.BAT, and  DMXFER3.BAT.   Each of
  153.      these  handles  ZMODEM,  XMODEM,  and  YMODEM,  respectively.     Your
  154.      resulting DMXFERS.TXT file could look like:
  155.  
  156.                ZMODEM w/ crash recovery, 32-bit CRC
  157.                ZMODEM 32-bit CRC
  158.                XMODEM CRC
  159.                XMODEM CRC
  160.                YMODEM
  161.                YMODEM
  162.                not used
  163.                not used
  164.                not used
  165.                not used
  166.  
  167.           This  is how  DataMail  uses  DMXFERS.TXT:   During  a  download,
  168.      DataMail only looks at  lines 1, 3,  5, 7, and 9.   During an  upload,
  169.      DataMail only looks at  lines 2, 4, 6,  8, and 10.   Further, DataMail
  170.      will only examine any of the 5 lines it  looks at, if and only if, you
  171.      have specified something other  than "NONE" for each of  the protocols
  172.      available in  DMCONFIG.   Lines  1&2 are  for your  first batch  file.
  173.      Lines  3&4  are for  your  second, etc.    In the  above  example, the
  174.      literals  "not  used" are  not  of  any importance.    Since you  told
  175.                                     DataMail
  176.      SF31-4                       Version 1.1                Sysop's Manual
  177.                              SpitFire 3.1 Addendum
  178.      ======================================================================
  179.  
  180.  
  181.      DMCONFIG that  protocols 4 & 5  use a batch file  called "NONE" (i.e.,
  182.      you do not want to support protocols 4 & 5), DataMail will not display
  183.      lines 7&9 or 8&10  to the User.  So the contents of lines 7 through 10
  184.      are unimportant,  AS LONG AS THERE  IS SOMETHING THERE -  EVEN IF IT'S
  185.      JUST BLANKS.  You must have  at least 10  lines in DMXFERS.TXT.   More
  186.      than 10 is  OK (extra lines are  never read), but under  10 will cause
  187.      DataMail to  crash!  Use lines 11  through ? to document  this file if
  188.      you like.
  189.  
  190.           OK.   The  last part of  this process  is to  actually define the
  191.      batch files you specified  to DMCONFIG.  Sample files are  included if
  192.      you  would like  to  use them  (either  intact, or  as guidelines  for
  193.      creating your own).  One note  on these batch files.  Unlike a  lot of
  194.      other doors  available, DataMail does NOT make you keep 10 batch files
  195.      around (5  for uploads and 5  for downloads).  DataMail  uses the same
  196.      batch file to handle BOTH uploads and downloads.  The trick to this is
  197.      the first argument passed to your  batch file.  If the argument  is an
  198.      "R", you  should "goto" the receive-label.  If the argument is an "S",
  199.      you should "goto"  the send-label.   The sample  batch files  document
  200.      each parameter, and  provide a good foundation for setting up your own
  201.      batch files.
  202.  
  203.           Not to  confuse the issue (if  it isn't already), but  just as an
  204.      aside for those Sysops who  feel adventurous;  There is no  reason why
  205.      DMXFER1.BAT must handle ZMODEM in both it's upload and download modes.
  206.      It is entirely acceptable to use, say, ZMODEM for uploads, and SEALink
  207.      Derived for  downloads in DMXFER1.BAT.   Just be aware of  two things.
  208.      First,  make sure your  DMXFERS.TXT file says "ZMODEM"  on line 1, and
  209.      "SEALink"  on  line 2.    Second, you  are  making life  miserable for
  210.      yourself!   It would be  easier to  remember your set-up  if you  make
  211.      DMXFER1.BAT do ZMODEM transfers  only (both uploads & downloads).   If
  212.      you want to support SEALink, put  that in a different batch file (say,
  213.      DMXFER2.BAT)  and  make  the upload  &  download  in  that batch  file
  214.      exclusively SEALink.
  215.  
  216.           Now, except for actually  testing your batch files, this  part of
  217.      the installation is finished.
  218.  
  219.  
  220.      Installation: Step 3
  221.      ====================
  222.  
  223.           Run DMCONFIG once  more.  Select Configure Global Parameters, and
  224.      then Path to UTI Programs.
  225.  
  226.           You  need to tell DataMail where your UTIIMPRT.EXE program can be
  227.      found.   If  you run  echo-mail  on a  network, more  than likely  you
  228.      already  have  these files  installed  somewhere  on your  hard  disk,
  229.      possibly something like  D:\PCRELAY or C:\UTI.  If you  do not already
  230.      have  your  UTI  programs  installed,  you  may  place  them  in  your
  231.      D:\DATAMAIL  directory along with all the DataMail programs and files.
  232.      Please  refer to the documentation  that comes with  your UTI programs
  233.      for instructions on installing your UTI.
  234.                                     DataMail
  235.      Sysop's Manual               Version 1.1                        SF31-5
  236.                              SpitFire 3.1 Addendum
  237.      ======================================================================
  238.  
  239.  
  240.           Note  that DataMail will run just fine without accessing your UTI
  241.      programs, so if you do not have them, you can still use DataMail.  The
  242.      only  draw-back is  that there  will be  no  mail notification  to the
  243.      uploaders  and downloaders of DataMail.  The  UTI programs are used to
  244.      import  DataMail messages into your SpitFire  Message Bases so senders
  245.      and receivers can  be automatically notified of events  which occurred
  246.      inside DataMail.   A UTI is  available for SpitFire  from Bob  Browne,
  247.      Smart  Office Solutions.  A shareware version is available from my BBS
  248.      also (registration of  your SpitFire UTI should be sent to Bob Browne,
  249.      however, as I am not an authorized collector of funds for him).
  250.  
  251.           With  all that  explanation  out of  the way,  you must  now tell
  252.      DataMail  where  your UTI  programs  are  located.   Do  not  enter  a
  253.      filename;  just the  Drive:\Path\.  If  you have your  UTI programs in
  254.      D:\PCRELAY, then that's exactly what you should enter at this time.
  255.  
  256.  
  257.      Installation: Step 4
  258.      ====================
  259.  
  260.           Run  DMCONFIG  and  select   Configure  Global  Parameters,  then
  261.      Location  of  DataMail  Files.     You  need  to  tell   DataMail  the
  262.      Drive:\Path\ to where  your Users  will be uploading  files (and  from
  263.      where  other Users will be  downloading).  If you  chose to go with my
  264.      recommendation, this will  be D:\DATAMAIL\FILES or  C:\DATAMAIL\FILES.
  265.      Make sure  this directory is defined!   Do so by typing  (from the DOS
  266.      command-line) MD D:\DATAMAIL\FILES (or MD C:\DATAMAIL\FILES).
  267.  
  268.  
  269.      Installation: Step 5
  270.      ====================
  271.  
  272.           This  last part of installation will vary depending upon how many
  273.      "nodes" your BBS has, and whether or not you  use a dummy node (0) for
  274.      local operations.   For now, let's just assume you  only have one node
  275.      (node 1), or if you have more, you will only run DataMail from node 1.
  276.      Once  you see what is needed here,  you should have no trouble setting
  277.      up for a second, third, etc., node...
  278.                                     DataMail
  279.      SF31-6                       Version 1.1                Sysop's Manual
  280.                              SpitFire 3.1 Addendum
  281.      ======================================================================
  282.  
  283.  
  284.           You need to establish  a batch file to actually run  the door.  I
  285.      recommend  DM1.BAT for node one  (DM2.BAT, etc., for  other nodes, and
  286.      DM0.BAT for your local "dummy" node if you want one -  more on that in
  287.      the  main part of the Sysop's Manual).   DM1.BAT should accomplish the
  288.      following:
  289.  
  290.           D:
  291.           CD \DATAMAIL
  292.           DATAMAIL {Drive:\Path\}DOOR.SYS [PORT:aaaa:i]
  293.           (all of the following are optional)
  294.           IF EXIST DMESSAGE.1 DMUTIMSG DMESSAGE.1 {Msg-Base}
  295.           IF EXIST DMEXIT0.1 {action for normal exit}
  296.           IF EXIST DMEXIT1.1 {action for dropped carrier}
  297.           IF EXIST DMEXIT2.1 {action for inactivity/timeout}
  298.           IF EXIST DMEXIT3.1 {action for Sysop-Forced exit}
  299.           IF EXIST DMEXIT4.1 {action for allotted time expired}
  300.           IF EXIST DMEXIT90.1 {action for SHARE violation}
  301.           IF EXIST DMEXIT99.1 {action for Configuration error}
  302.  
  303.           All of the above are explained in detail later on, but just for a
  304.      quick run-down:
  305.  
  306.           {Drive:\Path\} is  the Drive: and  \Path\ to your  BBS's DOOR.SYS
  307.           file; if  you  run SpitFire  on  drive C:,  this  will likely  be
  308.           C:\SF\DOOR.SYS.  THIS IS REQUIRED!
  309.  
  310.           [PORT:aaaa:i] is  optional.  You  need this  only if you  are NOT
  311.           running a standard COM1, COM2, etc., port for your BBS Node.  The
  312.           "PORT" and colons (:) are literals; they should appear exactly as
  313.           typed.   The "aaaa"  is intended  to  be replaced  with with  the
  314.           address of your port's UART.  The "i" is intended  to be replaced
  315.           with the IRQ number required for  that UART address.  The "[" and
  316.           "]" are NOT intended to be typed; they are there to show you that
  317.           this  field  is  optional.   Most  Sysops  will  never need  this
  318.           optional parameter.  For those that do, an example would be:
  319.  
  320.                     DATAMAIL C:\SF\DOOR.SYS PORT:03F8:5
  321.  
  322.           This tells  DataMail to use IRQ5, but to use the UART address for
  323.           what is normally considered to be COM2 on most DOS  machines.  If
  324.           your   hardware   is  such   that   you   have  these   "oddball"
  325.           configurations due to a lot of different COMM ports, then you may
  326.           need to provide  this optional  parameter to DataMail  so it  can
  327.           properly  communicate with the remote caller.  Note that this has
  328.           no effect when you run DataMail in "local" mode, so this optional
  329.           parameter may be left off.
  330.  
  331.           The test for DMESSAGE.1 is there in order to call the UTI Message
  332.           Formatter so that any messages generated  by DataMail will appear
  333.           in your BBS's Message Base.  Note that, depending upon the User's
  334.           actions,  there may not  be any messages,  so that is  why an "IF
  335.           EXIST" is  supplied;  sometimes  the  file  DMESSAGE.1  won't  be
  336.           available.
  337.                                     DataMail
  338.      Sysop's Manual               Version 1.1                        SF31-7
  339.                              SpitFire 3.1 Addendum
  340.      ======================================================================
  341.  
  342.  
  343.           The  remaining  "IF EXIST"  lines  test for  the  reason DataMail
  344.           exited.  Most Sysops will find  this of little use, but for those
  345.           that need to know,  DataMail catalogs exactly one of  these files
  346.           upon  exiting.  In all cases, the  extension ".1" refers to "node
  347.           1".  If you setup DM2.BAT for your second node, all references to
  348.           ".1" should be changed to ".2".
  349.  
  350.           Now, edit your BBS batch  file (probably C:\SF\SF.BAT) and locate
  351.      the label for DOORx (where  "x" is the character of the  Door you want
  352.      DataMail to be defined as).  After this label, insert:
  353.  
  354.                CALL D:\DATAMAIL\DM1.BAT
  355.                C:  (if C: is the drive your SF.BAT file is on)
  356.                CD \SF (if \SF is the directory for your SF.BAT file)
  357.  
  358.           Now  edit SFDOOR.MNU.   Add  a line  to define  DataMail and  the
  359.      security level required to execute the DataMail door.
  360.  
  361.  
  362.      Installation: Wrap-up
  363.      =====================
  364.  
  365.           You are all done with the initial, basic installation!   A little
  366.      complicated,  but  that  is  because  DataMail  offers  you   complete
  367.      flexibility in defining your own desired Paths and filenames.  To test
  368.      your installation, start SpitFire  and when you see the  "...Ready for
  369.      Use..." message, type  Ctrl-Q, and  then logon locally  (as Sysop,  or
  370.      whatever name you use).
  371.  
  372.           If  you are using the  standard SpitFire commands,  select S (for
  373.      Doors).  If  you do not  see an option  for DataMail, you  incorrectly
  374.      edited SFDOOR.MNU; exit  SpitFire and correct the problem.   If you do
  375.      see an option for  DataMail, make sure that the Command-Letter  is the
  376.      same one you selected as the Label in your SF.BAT batch file.  If not,
  377.      exit SpitFire and correct your modifications to SF.BAT.
  378.  
  379.           Now,  enter the Command-Letter for  DataMail.  If  you have named
  380.      your batch  files correctly, and  they are properly  defined, DataMail
  381.      should run and show you a prompt asking for Upload, Group Maintenance,
  382.      etc.   If not, either you have  not properly configured DataMail, your
  383.      batch file is not making the default directory D:\DATAMAIL, or you are
  384.      missing some files in your D:\DATAMAIL  directory.  Go back and  check
  385.      your installation.  (Note that the problem may also  be due to lack of
  386.      memory if you are running DesqView or Windows, etc.  In this case, you
  387.      will need to allocate more memory to the current window).
  388.                                     DataMail
  389.      SF31-8                       Version 1.1                Sysop's Manual
  390.                              SpitFire 3.1 Addendum
  391.      ======================================================================
  392.  
  393.  
  394.           Select "x" to exit DataMail.  You should be returned  to your BBS
  395.      session.  Exit SpitFire and take a look at your D:\DATAMAIL directory.
  396.      You should  see two new files;  DMLOG.1 and DMEXIT0.1.   DMLOG.1 is an
  397.      audit trail (it should show that you entered DataMail, and then exited
  398.      normally).   DMEXIT0.1 is  cataloged if  you care  about how  the User
  399.      exited DataMail (in this case, by selecting option "x").  If you don't
  400.      care about  this, simply  ignore DMEXIT??.1  whenever these files  are
  401.      created (they are  deleted when  DataMail starts, and  exactly one  of
  402.      them will be created when DataMail exits).
  403.  
  404.           If you have  gotten this  far, your installation  is correct  and
  405.      complete.  All  that remains  is to actually  test your  file-transfer
  406.      batch files (sorry,  you'll have to verify that  via remote access, or
  407.      watch a caller logon and use them), setting up the individual security
  408.      level parameters and  global overrides to them, and  verification that
  409.      your UTI Drive:\Path\ is correct and your UTI programs are working.
  410.